package com.tech.cloudapp.consta;

public class CommConst {

      public static final String TOKEN_KEY = "Authorization";

      public static final Integer PAGE_SIZE = 20;
//    public static final String BOSS_WEB_URL = "https://www.zhipin.com";

//    /** 用户登录页面 */
//    public static final String BOSS_USER_LOGIN = BOSS_WEB_URL + "/web/user/?ka=header-login";
//
//    public static final String BOSS_JOB_CURRENT = BOSS_WEB_URL + "/web/geek/job?query={0}&city={1}";
//    /** JOB列表页面 Page*/
//    public static final String BOSS_JOB_LIST = BOSS_WEB_URL + "/web/geek/job?query={0}&city={1}&page={2}";

    public enum SERVICE_CODE_MAPPING {

//        BOSS_11010001_01("11010001_01"), //生成BOSS的JOB页面信息爬取任务
//        BOSS_11010001_02("11010001_02"), //获取BOSS的JOB详细页面信息
//        BOSS_21010001_01("21010001_01") //执行JOB页面信息爬取任务获取页面信息
        ;

        private String value;

        SERVICE_CODE_MAPPING(String value) {
            this.value = value;
        }

        public static SERVICE_CODE_MAPPING get(String value) {
            for (SERVICE_CODE_MAPPING f : SERVICE_CODE_MAPPING.values()) {
                if (f.value.equals(value)) {
                    return f;
                }
            }

            return null;
        }

    }

}
